package com.nuhu.service;

import com.nuhu.dao.ComplaintRecordDao;
import com.nuhu.pojo.ComplaintRecord;
import com.nuhu.service.impl.ComplaintRecordServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ComplaintRecordService implements ComplaintRecordServiceImpl {
    @Autowired
    private ComplaintRecordDao complaintRecordDao;

    @Override
    public void complaintInsert(ComplaintRecord complaintRecord) {
        complaintRecordDao.insertComplaintRecord(complaintRecord);
    }

    @Override
    public void complaintSetIssueResolved(ComplaintRecord complaintRecord) {
        complaintRecordDao.complaintSetIssueResolved(complaintRecord);
    }

    @Override
    public ComplaintRecord complaintGetIssueResolved(ComplaintRecord complaintRecord) {
        return complaintRecordDao.complaintGetIssueResolved(complaintRecord);
    }

    @Override
    public void complaintSetIsSigned(ComplaintRecord complaintRecord) {
        complaintRecordDao.complaintSetIsSigned(complaintRecord);
    }

    @Override
    public ComplaintRecord complaintGetIsSigned(ComplaintRecord complaintRecord) {
        return complaintRecordDao.complaintGetIsSigned(complaintRecord);
    }

    @Override
    public ComplaintRecord complaintSelect() {
        return complaintRecordDao.selectComplaintRecord();
    }
}
